export const getFileType = (fileName) => {
  let splits = fileName.split('.')
  const type = splits[splits.length - 1]
  if (type === 'png' || type === 'jpg' || type === 'jpeg') {
    return 'image/' + type
  }
}
